package com.fanrui.code.entity;

import java.io.Serializable;

import com.fanrui.code.common.annotation.ConfigFile;
import com.fanrui.code.db.jvmdb.IPersistable;

/**
 * @author 
 */
@ConfigFile
public class MahjongTableConfig implements Serializable, IPersistable<Integer> {
    private Integer id;

    /**
     * 房间等级  0 初级 1 中级 2 高级 3 富豪
     */
    private Integer tableLevel;

    /**
     * 入场金币限制
     */
    private Integer enterLimit;

    /**
     * 离场限制 小于0 不限制
     */
    private Integer leaveLimit;

    /**
     * 游戏类型 0 赣州 1 爆胡
     */
    private Integer gameType;

    /**
     * 底注
     */
    private Integer localLimit;

    /**
     * 人数
     */
    private Integer maxPerson;

    /**
     * 赣州麻将翻精：0上下 1上下左右 2上下左左右右
     */
    private Integer fanJing;

    /**
     * 赣州麻将胡法：0平胡 1有精必钓 2有精点炮不能平胡
     */
    private Integer huMethod;

    /**
     * false通庄 true闲庄(庄家加倍)
     */
    private Boolean zhuang;

    /**
     * 赣州冲关玩法：[{"fineReward":false,"openingRandomPosition":false,"qiangGangHuDouble":false,"twoGamerCannotChi":false,"twoGamerCannotGenZhuang":false}]
     */
    private String ganzhouPlayStyle;

    /**
     * 相同ip是否可进
     */
    private Boolean sameIp;

    /**
     * 安全距离（米）
     */
    private Long safeDistance;

    /**
     * 爆胡：买马
     */
    private Integer buyMa;

    /**
     * 爆胡：鬼牌 0无鬼 1翻鬼 2白板当鬼
     */
    private Integer guipai;

    /**
     * 爆胡玩法：[{"baoHu":0,"qiDui":0,"qiang":false,"qingYiSe":0,"haoQiDui":0,"gangBaoQuanBao":false,"ziYiSe":0,"qingSeBaoHu":0,"genZhuang":false,"less10CannotPeng":false,"notGuiDouble":false,"openingRandomPosition":false,"twoGamerCannotGenZhuang":false}]

     */
    private String baohuPlayStyle;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTableLevel() {
        return tableLevel;
    }

    public void setTableLevel(Integer tableLevel) {
        this.tableLevel = tableLevel;
    }

    public Integer getEnterLimit() {
        return enterLimit;
    }

    public void setEnterLimit(Integer enterLimit) {
        this.enterLimit = enterLimit;
    }

    public Integer getLeaveLimit() {
        return leaveLimit;
    }

    public void setLeaveLimit(Integer leaveLimit) {
        this.leaveLimit = leaveLimit;
    }

    public Integer getGameType() {
        return gameType;
    }

    public void setGameType(Integer gameType) {
        this.gameType = gameType;
    }

    public Integer getLocalLimit() {
        return localLimit;
    }

    public void setLocalLimit(Integer localLimit) {
        this.localLimit = localLimit;
    }

    public Integer getMaxPerson() {
        return maxPerson;
    }

    public void setMaxPerson(Integer maxPerson) {
        this.maxPerson = maxPerson;
    }

    public Integer getFanJing() {
        return fanJing;
    }

    public void setFanJing(Integer fanJing) {
        this.fanJing = fanJing;
    }

    public Integer getHuMethod() {
        return huMethod;
    }

    public void setHuMethod(Integer huMethod) {
        this.huMethod = huMethod;
    }

    public Boolean getZhuang() {
        return zhuang;
    }

    public void setZhuang(Boolean zhuang) {
        this.zhuang = zhuang;
    }

    public String getGanzhouPlayStyle() {
        return ganzhouPlayStyle;
    }

    public void setGanzhouPlayStyle(String ganzhouPlayStyle) {
        this.ganzhouPlayStyle = ganzhouPlayStyle;
    }

    public Boolean getSameIp() {
        return sameIp;
    }

    public void setSameIp(Boolean sameIp) {
        this.sameIp = sameIp;
    }

    public Long getSafeDistance() {
        return safeDistance;
    }

    public void setSafeDistance(Long safeDistance) {
        this.safeDistance = safeDistance;
    }

    public Integer getBuyMa() {
        return buyMa;
    }

    public void setBuyMa(Integer buyMa) {
        this.buyMa = buyMa;
    }

    public Integer getGuipai() {
        return guipai;
    }

    public void setGuipai(Integer guipai) {
        this.guipai = guipai;
    }

    public String getBaohuPlayStyle() {
        return baohuPlayStyle;
    }

    public void setBaohuPlayStyle(String baohuPlayStyle) {
        this.baohuPlayStyle = baohuPlayStyle;
    }

	@Override
	public void setPersistKey(Integer id) {
		this.id = id;
	}

	@Override
	public Integer getPersistKey() {
		return id;
	}
}